LOCK VERTEXDATA FOR MESH
This command will lock the vertexdata of a mesh, allowing it to be modified by the vertexdata commands.
LOCK VERTEXDATA FOR MESH Mesh Number
Mesh Number
Integer
This value is an integer number such as 1.
This command does not return a value.
Use UNLOCK VERTEXDATA to release this lock and apply the changes you have made. If the Lock Mode flag is zero, the entire vertexdata is replaced in the vertex buffer, if the value is one the vertex buffer is merely refreshed which is considerably faster. A value of two will replace the vertexdata in the vertex buffer entirely, and it will also ensure the original data copy of the object is updated as well (useful when saving and bone animating the object).
No example code is provided for this command
BASIC3D Commands Menu
Index